package com.yupi.yuaiagent.demo.invoke;

import dev.langchain4j.model.dashscope.QwenChatModel;
import dev.langchain4j.model.dashscope.QwenLanguageModel;

import java.net.SocketOption;

public class LangChainAiInvoke {
    public static void main(String[] args) {
       QwenLanguageModel qlm = QwenLanguageModel.builder()
               .apiKey(TestApiKey.API_KEY)
               .modelName("qwen-plus")
               .build();

      String answer = String.valueOf(qlm.generate("你好，我是Iran，正在完成一个超级智能体"));
      System.out.println(answer);

    }
}
